第5步:使用一个索引从 head_list 中获取第一个值。

我们的指令将在列表中存储第一个值 [0] 索引,所以 head_image 现在存储了 "head1"

  • 点击 ,将 Get Value at Index 拖动到程序底部。
  • 将变量名称更改为 head_image
  • 将列表名称更改为 head_list


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)